const mockjs = require('mockjs'); //导入mock.js的模块
const Random = mockjs.Random; //导入mock.js的随机数


let db={};
module.exports = {
    'PUT /api/addressbook' (req, res) {
        console.log('---Mock get demo request---', '\n', req.query);
        res.json({
            code:0,
            msg: '获取成功',
        });
    },
    'GET /api/check/routeone' (req, res) {
        console.log(req.query);
        res.json({
            code:0,
            data:[
                {id:1,num:1,name:'bejing',type:"1",loca:'北京'},
                {id:2,num:2,name:'shanghai',type:"2",loca:'上海'},
                {id:3,num:3,name:'wuhan',type:"2",loca:'武汉'},
            ],
            total:3,
            msg: '获取成功',
        });
    },
    'POST /api/check/point' (req, res) {
        console.log(req.query);
        res.json({
            code:0,
            msg: '获取成功',
        });
    },
    'DELETE /api/check/point' (req, res) {
        console.log(req.query);
        res.json({
            code:0,
            msg: '获取成功',
        });
    },

};